package com.test.clyq.entity;

import com.test.entity.Item;
import com.test.json.JsonUtil;

/**
 * 栏目图片域. <br>
 * 栏目图片域实体.
 * <p>
 * Copyright: Copyright (c) Dec 16, 2010 9:37:35 AM
 * <p>
 * Company: 北京宽连十方数字技术有限公司
 * <p>
 * Author: suncg@c-platform.com
 * <p>
 * Version: 1.0
 * <p>
 */
public class CategoryImg implements Item {

	private static final long serialVersionUID = 1l;

	/** 图片域对应的栏目体 */
	private Category category;

	/** 栏目ID* */
	private Long categoryId;

	/** 图片上传时间 */
	private Long categoryImgCreatetime;

	/** 图片描述 */
	private String categoryImgDesc;

	/** 图片域图片ID */
	private Long categoryImgId;

	/** 图片名称 */
	private String categoryImgName;

	/** 图片路径 */
	private String categoryImgPath;

	/** 图片绑定url */
	private String categoryImgUrl;

	/** 是否推荐 */
	private Integer isPublic;

	/** 排序值 */
	private Integer orderId = 0;

	/** 是否是专题连接0:不是,1是 */
	private Integer isZhuanTi = 0;

	public Integer getIsZhuanTi() {
		return isZhuanTi;
	}

	public void setIsZhuanTi(Integer isZhuanTi) {
		this.isZhuanTi = isZhuanTi;
	}

	public Category getCategory() {
		return category;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public Long getCategoryImgCreatetime() {
		return categoryImgCreatetime;
	}

	public String getCategoryImgDesc() {
		return categoryImgDesc;
	}

	public Long getCategoryImgId() {
		return categoryImgId;
	}

	public String getCategoryImgName() {
		return categoryImgName;
	}

	public String getCategoryImgPath() {
		return categoryImgPath;
	}

	public String getCategoryImgUrl() {
		return categoryImgUrl;
	}

	public Long getId() {
		return this.categoryImgId;
	}

	public Integer getIsPublic() {
		return isPublic;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public void setCategoryImgCreatetime(Long categoryImgCreatetime) {
		this.categoryImgCreatetime = categoryImgCreatetime;
	}

	public void setCategoryImgDesc(String categoryImgDesc) {
		this.categoryImgDesc = categoryImgDesc;
	}

	public void setCategoryImgId(Long categoryImgId) {
		this.categoryImgId = categoryImgId;
	}

	public void setCategoryImgName(String categoryImgName) {
		this.categoryImgName = categoryImgName;
	}

	public void setCategoryImgPath(String categoryImgPath) {
		this.categoryImgPath = categoryImgPath;
	}

	public void setCategoryImgUrl(String categoryImgUrl) {
		this.categoryImgUrl = categoryImgUrl;
	}

	public void setId(Long id) {
		this.categoryImgId = id;
	}

	public void setIsPublic(Integer isPublic) {
		this.isPublic = isPublic;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public String toJSON() {
		return JsonUtil.getJsonStringFromObject(this);
	}

	public String toXML() {
		return null;
	}

}
